Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle exception closing stream for unavailable adapter on windows. #427

Merged
merged 5 commits into from
Jul 25, 2024

Conversation

kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Jul 24, 2024

On windows shutting down a stream for an adapter that is no longer available would crash. I was testing this by disabling adapters, but my suspicion is after a computer sleeps it may take some time for the adapters to recover on windows.

@kinyoklion kinyoklion marked this pull request as ready for review July 24, 2024 22:37
@kinyoklion kinyoklion requested a review from a team as a code owner July 24, 2024 22:37
@kinyoklion kinyoklion requested a review from keelerm84 July 24, 2024 22:37
@@ -341,13 +341,21 @@ class FoxyClient : public Client,
// If any backoff is taking place, cancel that as well.
backoff_timer_.cancel();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function can theoretically throw as well, but I cannot find any confirmation of a condition where it actually throws.

@kinyoklion kinyoklion merged commit ae0013c into main Jul 25, 2024
20 checks passed
@kinyoklion kinyoklion deleted the rlamb/sc-251111/stream-close-crash branch July 25, 2024 15:51
@github-actions github-actions bot mentioned this pull request Jul 25, 2024
kinyoklion pushed a commit that referenced this pull request Jul 25, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-cpp-client: 3.6.3</summary>

##
[3.6.3](launchdarkly-cpp-client-v3.6.2...launchdarkly-cpp-client-v3.6.3)
(2024-07-25)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-sse-client bumped from 0.5.1 to 0.5.2
</details>

<details><summary>launchdarkly-cpp-server: 3.5.3</summary>

##
[3.5.3](launchdarkly-cpp-server-v3.5.2...launchdarkly-cpp-server-v3.5.3)
(2024-07-25)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-sse-client bumped from 0.5.1 to 0.5.2
</details>

<details><summary>launchdarkly-cpp-server-redis-source: 2.1.11</summary>

##
[2.1.11](launchdarkly-cpp-server-redis-source-v2.1.10...launchdarkly-cpp-server-redis-source-v2.1.11)
(2024-07-25)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-server bumped from 3.5.2 to 3.5.3
</details>

<details><summary>launchdarkly-cpp-sse-client: 0.5.2</summary>

##
[0.5.2](launchdarkly-cpp-sse-client-v0.5.1...launchdarkly-cpp-sse-client-v0.5.2)
(2024-07-25)


### Bug Fixes

* Handle exception closing stream for unavailable adapter on windows.
([#427](#427))
([ae0013c](ae0013c))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants